package com.shop.cereshop.agent.dao.redis;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.cereshop.commons.domain.redis.CereRedisKey;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereRedisKeyDAO extends BaseMapper<CereRedisKey> {

  /**
   * 插入
   */
  int insertSelective(CereRedisKey record);

  /**
   * 更新
   */
  void updateByKey(CereRedisKey cereRedisKey);

  /**
   * 删除
   */
  void deleteByKey(@Param("key") String key);

  /**
   * 查询所有
   */
  List<CereRedisKey> findAll();

  /**
   * 根据 key 查询
   */
  String findByKey(@Param("key") String key);
}
